package com.example.x1c.networktest;

import okhttp3.OkHttpClient;
import okhttp3.Request;

/**
 * Created by x1c on 2017/12/30.
 */

public class HttpUtil {

    public static void sendHttpRequest(String address, HttpCallbackListener listener){

        new Thread(new Runnable() {
            @Override
            public void run() {

            }
        }).start();

    }

    public static void sendOkHttpRequest(String address, okhttp3.Callback callback){
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(address).build();
        client.newCall(request).enqueue(callback
        );
    }
}
